<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>使用OSS+PicGo搭建图床 | 刘超的博客</title><meta name="author" content="刘超"><meta name="copyright" content="刘超"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="前言目前写博客需要用到很多图片或者其他资源,直接链接网络资源可能因为外链禁止访问(例如 gitee 403 forbidden)或者是本地资源存储造成文件过大或者是需要 base64 转换麻烦，所以采用 OSS+PicGo 搭建图床  学习文档阿里云-对象存储 OSSOSS 服务 购买资源包首先消费马内购买资源包， 这个位置我之前已经买过了，所以有提示，个人建议买最低的就够用了。 创建 Bucke">
<meta property="og:type" content="article">
<meta property="og:title" content="使用OSS+PicGo搭建图床">
<meta property="og:url" content="https://leachliu.gitee.io/2023/01/12/other/%E4%BD%BF%E7%94%A8OSS+PicGo%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/index.html">
<meta property="og:site_name" content="刘超的博客">
<meta property="og:description" content="前言目前写博客需要用到很多图片或者其他资源,直接链接网络资源可能因为外链禁止访问(例如 gitee 403 forbidden)或者是本地资源存储造成文件过大或者是需要 base64 转换麻烦，所以采用 OSS+PicGo 搭建图床  学习文档阿里云-对象存储 OSSOSS 服务 购买资源包首先消费马内购买资源包， 这个位置我之前已经买过了，所以有提示，个人建议买最低的就够用了。 创建 Bucke">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121557184.png">
<meta property="article:published_time" content="2023-01-12T07:39:00.000Z">
<meta property="article:modified_time" content="2023-11-03T07:37:06.438Z">
<meta property="article:author" content="刘超">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121557184.png"><link rel="shortcut icon" href="/images/favicon.ico"><link rel="canonical" href="https://leachliu.gitee.io/2023/01/12/other/%E4%BD%BF%E7%94%A8OSS+PicGo%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/',
  algolia: {"appId":"VFZO06XK8A","apiKey":"1202cec78a85d208874b3c9cbcd0e212","indexName":"index total","hits":{"per_page":10},"languages":{"input_placeholder":"搜索文章","hits_empty":"找不到您查询的内容：${query}","hits_stats":"找到 ${hits} 条结果，用时 ${time} 毫秒"}},
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  infinitegrid: {
    js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid/dist/infinitegrid.min.js',
    buttonText: '加载更多'
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '使用OSS+PicGo搭建图床',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-11-03 15:37:06'
}</script><script>(win=>{
      win.saveToLocal = {
        set: (key, value, ttl) => {
          if (ttl === 0) return
          const now = Date.now()
          const expiry = now + ttl * 86400000
          const item = {
            value,
            expiry
          }
          localStorage.setItem(key, JSON.stringify(item))
        },
      
        get: key => {
          const itemStr = localStorage.getItem(key)
      
          if (!itemStr) {
            return undefined
          }
          const item = JSON.parse(itemStr)
          const now = Date.now()
      
          if (now > item.expiry) {
            localStorage.removeItem(key)
            return undefined
          }
          return item.value
        }
      }
    
      win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
        const script = document.createElement('script')
        script.src = url
        script.async = true
        script.onerror = reject
        script.onload = script.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          script.onload = script.onreadystatechange = null
          resolve()
        }

        Object.keys(attr).forEach(key => {
          script.setAttribute(key, attr[key])
        })

        document.head.appendChild(script)
      })
    
      win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
        const link = document.createElement('link')
        link.rel = 'stylesheet'
        link.href = url
        if (id) link.id = id
        link.onerror = reject
        link.onload = link.onreadystatechange = function() {
          const loadState = this.readyState
          if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
          link.onload = link.onreadystatechange = null
          resolve()
        }
        document.head.appendChild(link)
      })
    
      win.activateDarkMode = () => {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = () => {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
        if (t === 'dark') activateDarkMode()
        else if (t === 'light') activateLightMode()
      
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
      const detectApple = () => {
        if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
          document.documentElement.classList.add('apple')
        }
      }
      detectApple()
    })(window)</script><link rel="stylesheet" href="https://npm.elemecdn.com/ethan4116-blog/lib/css/plane_v2.css"><link rel="stylesheet" href="https://fastly.jsdelivr.net/gh/l-lin/font-awesome-animation/dist/font-awesome-animation.min.css"  media="defer" onload="this.media='all'"><script defer src="/js/custom.js"></script><link rel="stylesheet" href="https://fastly.jsdelivr.net/gh/HCLonely/images@master/others/heartbeat.min.css"><link rel="stylesheet" href="/css/universe.css"><link rel="stylesheet" href="/css/custom.css"><!-- hexo injector head_end start --><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/font-awesome-animation.min.css" media="defer" onload="this.media='all'"><link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/tag_plugins.css" media="defer" onload="this.media='all'"><script src="https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/carousel-touch.js"></script><!-- hexo injector head_end end --><meta name="generator" content="Hexo 7.0.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/images/avatar.webp" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">41</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">21</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog-info"><a href="/" title="刘超的博客"><span class="site-name">刘超的博客</span></a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="post"><div id="post-info"><h1 class="post-title">使用OSS+PicGo搭建图床</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-01-12T07:39:00.000Z" title="发表于 2023-01-12 15:39:00">2023-01-12</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-11-03T07:37:06.438Z" title="更新于 2023-11-03 15:37:06">2023-11-03</time></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="使用OSS+PicGo搭建图床"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div><article class="post-content" id="article-container"><h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><div class="tip faa-horizontal animated"><p>目前写博客需要用到很多图片或者其他资源,直接链接网络资源可能因为外链禁止访问(例如 gitee 403 forbidden)或者是本地资源存储造成文件过大或者是需要 base64 转换麻烦，所以采用 OSS+PicGo 搭建图床</p>
</div>
<h3 id="学习文档"><a href="#学习文档" class="headerlink" title="学习文档"></a>学习文档</h3><p><a target="_blank" rel="noopener" href="https://www.aliyun.com/product/oss?spm=5176.7933691.J_8058803260.34.78c64c59rmOuiL">阿里云-对象存储 OSS</a><br><a target="_blank" rel="noopener" href="https://oss.console.aliyun.com/overview">OSS 服务</a></p>
<h3 id="购买资源包"><a href="#购买资源包" class="headerlink" title="购买资源包"></a>购买资源包</h3><p>首先消费马内购买资源包， 这个位置我之前已经买过了，所以有提示，个人建议买最低的就够用了。<br><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121637326.png" alt=""></p>
<h3 id="创建-Bucket-存储桶-以及存储目录"><a href="#创建-Bucket-存储桶-以及存储目录" class="headerlink" title="创建 Bucket(存储桶)以及存储目录"></a>创建 Bucket(存储桶)以及存储目录</h3><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121645418.png" alt=""></p>
<h3 id="读写权限设置"><a href="#读写权限设置" class="headerlink" title="读写权限设置"></a>读写权限设置</h3><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121647985.png" alt=""></p>
<h3 id="新建文件目录"><a href="#新建文件目录" class="headerlink" title="新建文件目录"></a>新建文件目录</h3><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121649211.png" alt=""></p>
<h3 id="创建用户，分配权限"><a href="#创建用户，分配权限" class="headerlink" title="创建用户，分配权限"></a>创建用户，分配权限</h3><h4 id="点击创建用户入口"><a href="#点击创建用户入口" class="headerlink" title="点击创建用户入口"></a>点击创建用户入口</h4><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121653534.png" alt=""></p>
<h4 id="创建用户"><a href="#创建用户" class="headerlink" title="创建用户"></a>创建用户</h4><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121654996.png" alt=""></p>
<p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121659332.png" alt=""></p>
<h4 id="创建成功"><a href="#创建成功" class="headerlink" title="创建成功"></a>创建成功</h4><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121704126.png" alt=""></p>
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line">用户登录名称 leachliu99@xxxxxx9156444.<span class="property">onxxxxyun</span>.<span class="property">com</span></span><br><span class="line"><span class="title class_">AccessKey</span> <span class="variable constant_">ID</span>：<span class="title class_">LTAI5</span>tC8Exxpoxw68xxexKb</span><br><span class="line"><span class="title class_">AccessKey</span> <span class="title class_">Secret</span>：<span class="title class_">Ynxf9</span>uqrxPxgxxxQLCx9xRxHxscBUF</span><br></pre></td></tr></table></figure>
<div class="tip warning faa-horizontal animated-hover"><p>AccessKey Secret 只有才创建的时候才会出现,后续进入是不会出现的，除非删除掉，重新新增一个用户，会出现一个 csv 文件，最好是下来以便日后插用</p>
</div>
<h3 id="添加权限"><a href="#添加权限" class="headerlink" title="添加权限"></a>添加权限</h3><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121719493.png" alt=""></p>
<p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121720451.png" alt=""></p>
<div class="tip warning faa-horizontal animated"><p>获取存储区域：注意注意，仅仅是取 oss-cn-hangzhou(获取当前自己默认的地狱节点)，不是取全部！！！</p>
</div>
<p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121723045.png" alt=""></p>
<h3 id="下载-PicGo-工具"><a href="#下载-PicGo-工具" class="headerlink" title="下载 PicGo 工具"></a>下载 PicGo 工具</h3><p>下载 PicGo 工具(快捷上传图片到 OSS)</p>
<p><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/PicGo/releases">Github 下载地址</a></p>
<div class="btns rounded grid5">
            <a class="button" target="_blank" rel="noopener" href='https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121807744.dmg' title='mac版本'><i class='fas fa-download'></i>mac版本</a>
          </div>
<p>我们这里直接选择 dmg 来安装</p>
<div class="img-wrap"><div class="img-bg"><img class="img" src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121732834.png" style="height:400px;"/></div></div>
<h3 id="安装并设置-PicGO"><a href="#安装并设置-PicGO" class="headerlink" title="安装并设置 PicGO"></a>安装并设置 PicGO</h3><ol>
<li>打开上传相册成功提示开关</li>
<li>打开时间戳命名开关</li>
<li>取消其他勾选，选中阿里云 OSS</li>
</ol>
<p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/other/OSSAndPicGo202301121738033.png" alt=""></p>
<h3 id="阿里云-OSS-设置"><a href="#阿里云-OSS-设置" class="headerlink" title="阿里云 OSS 设置"></a>阿里云 OSS 设置</h3><figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="title class_">AccessKey</span> <span class="variable constant_">ID</span>：<span class="title class_">LTAI5</span>tC8Exxpoxw68xxexKb <span class="comment">//创建用户成功时候的Id值</span></span><br><span class="line"><span class="title class_">AccessKey</span> <span class="title class_">Secret</span>：<span class="title class_">Ynxf9</span>uqrxPxgxxxQLCx9xRxHxscBUF <span class="comment">//创建用户成功时候的key值</span></span><br><span class="line">存储空间名：pictured-bed</span><br><span class="line">确认存储区域：oss-cn-hangzhou</span><br><span class="line">存储区域：xxxx (自己命名的文件夹路径 最好不好用中文)</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121741670.png" alt=""></p>
<h3 id="PigGo-上传图片"><a href="#PigGo-上传图片" class="headerlink" title="PigGo 上传图片"></a>PigGo 上传图片</h3><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121748499.png" alt=""></p>
<h4 id="上传方式"><a href="#上传方式" class="headerlink" title="上传方式"></a>上传方式</h4><ol>
<li>拖入上传区域或者点击上传</li>
<li>在需要的图片中选择复制链接然后点击粘贴板上传</li>
<li>复制图片 url 地址上传</li>
</ol>
<div class="tip faa-horizontal animated success"><p>此时此刻就完成了自己的图床,可以上传自己的图片勒</p>
</div>
<h3 id="关于收费"><a href="#关于收费" class="headerlink" title="关于收费"></a>关于收费</h3><p><a target="_blank" rel="noopener" href="https://help.aliyun.com/document_detail/173535.html">OSS 对象存储-流量费用</a></p>
<p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121747840.png" alt=""></p>
<h3 id="各类资源收费定价标准—OSS-对象存储"><a href="#各类资源收费定价标准—OSS-对象存储" class="headerlink" title="各类资源收费定价标准—OSS 对象存储"></a>各类资源收费定价标准—OSS 对象存储</h3><p><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121753759.png" alt=""></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta"><i class="fas fa-circle-user fa-fw"></i>文章作者: </span><span class="post-copyright-info"><a href="https://leachliu.gitee.io">刘超</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta"><i class="fas fa-square-arrow-up-right fa-fw"></i>文章链接: </span><span class="post-copyright-info"><a href="https://leachliu.gitee.io/2023/01/12/other/%E4%BD%BF%E7%94%A8OSS+PicGo%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/">https://leachliu.gitee.io/2023/01/12/other/%E4%BD%BF%E7%94%A8OSS+PicGo%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta"><i class="fas fa-circle-exclamation fa-fw"></i>版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://leachliu.gitee.io" target="_blank">刘超的博客</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121557184.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/10/27/comlibary/1.%E6%90%AD%E5%BB%BApnpm%E3%80%81monorepo/" title="组件库框架 - 1 搭建pnpn monorepo"><img class="cover" src="/images/beijing3.webp" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">组件库框架 - 1 搭建pnpn monorepo</div></div></a></div><div class="next-post pull-right"><a href="/2022/12/31/vue/%E4%BD%BF%E7%94%A8popperJs%E5%B0%81%E8%A3%85%E6%B0%94%E6%B3%A1%E5%8D%A1%E7%BB%84%E4%BB%B6/" title="vue2使用popperJs封装气泡卡片"><img class="cover" src="/images/beijing3.webp" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">vue2使用popperJs封装气泡卡片</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/images/avatar.webp" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">刘超</div><div class="author-info__description">只有自己强大，才不会被别人践踏。</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">41</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">21</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&amp;uin=923946406&amp;site=qq&amp;menu=yes" target="_blank" title="QQ"><i class="fab fa-qq"></i></a><a class="social-icon" href="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301131417748.jpg" target="_blank" title="Wechat"><i class="fab fa-weixin"></i></a><a class="social-icon" href="/923946406@qq.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a><a class="social-icon" href="https://github.com/tzy13755126023" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="/atom.xml" target="_blank" title="Rss"><i class="fas fa-rss"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">书山有路勤为径,学海无涯苦作舟</div></div><div class="card-widget tzy-right-widget" id="card-wechat"><div id="flip-wrapper"><div id="flip-content"><div class="face"></div><div class="back face"></div></div></div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%89%8D%E8%A8%80"><span class="toc-number">1.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AD%A6%E4%B9%A0%E6%96%87%E6%A1%A3"><span class="toc-number">2.</span> <span class="toc-text">学习文档</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%B4%AD%E4%B9%B0%E8%B5%84%E6%BA%90%E5%8C%85"><span class="toc-number">3.</span> <span class="toc-text">购买资源包</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%88%9B%E5%BB%BA-Bucket-%E5%AD%98%E5%82%A8%E6%A1%B6-%E4%BB%A5%E5%8F%8A%E5%AD%98%E5%82%A8%E7%9B%AE%E5%BD%95"><span class="toc-number">4.</span> <span class="toc-text">创建 Bucket(存储桶)以及存储目录</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%AF%BB%E5%86%99%E6%9D%83%E9%99%90%E8%AE%BE%E7%BD%AE"><span class="toc-number">5.</span> <span class="toc-text">读写权限设置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E7%9B%AE%E5%BD%95"><span class="toc-number">6.</span> <span class="toc-text">新建文件目录</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%EF%BC%8C%E5%88%86%E9%85%8D%E6%9D%83%E9%99%90"><span class="toc-number">7.</span> <span class="toc-text">创建用户，分配权限</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E7%82%B9%E5%87%BB%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7%E5%85%A5%E5%8F%A3"><span class="toc-number">7.1.</span> <span class="toc-text">点击创建用户入口</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%88%9B%E5%BB%BA%E7%94%A8%E6%88%B7"><span class="toc-number">7.2.</span> <span class="toc-text">创建用户</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%88%9B%E5%BB%BA%E6%88%90%E5%8A%9F"><span class="toc-number">7.3.</span> <span class="toc-text">创建成功</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B7%BB%E5%8A%A0%E6%9D%83%E9%99%90"><span class="toc-number">8.</span> <span class="toc-text">添加权限</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%B8%8B%E8%BD%BD-PicGo-%E5%B7%A5%E5%85%B7"><span class="toc-number">9.</span> <span class="toc-text">下载 PicGo 工具</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E5%B9%B6%E8%AE%BE%E7%BD%AE-PicGO"><span class="toc-number">10.</span> <span class="toc-text">安装并设置 PicGO</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%98%BF%E9%87%8C%E4%BA%91-OSS-%E8%AE%BE%E7%BD%AE"><span class="toc-number">11.</span> <span class="toc-text">阿里云 OSS 设置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#PigGo-%E4%B8%8A%E4%BC%A0%E5%9B%BE%E7%89%87"><span class="toc-number">12.</span> <span class="toc-text">PigGo 上传图片</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%B8%8A%E4%BC%A0%E6%96%B9%E5%BC%8F"><span class="toc-number">12.1.</span> <span class="toc-text">上传方式</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B3%E4%BA%8E%E6%94%B6%E8%B4%B9"><span class="toc-number">13.</span> <span class="toc-text">关于收费</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%90%84%E7%B1%BB%E8%B5%84%E6%BA%90%E6%94%B6%E8%B4%B9%E5%AE%9A%E4%BB%B7%E6%A0%87%E5%87%86%E2%80%94OSS-%E5%AF%B9%E8%B1%A1%E5%AD%98%E5%82%A8"><span class="toc-number">14.</span> <span class="toc-text">各类资源收费定价标准—OSS 对象存储</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/11/06/comlibary/4.%E7%BB%84%E4%BB%B6%E5%BA%93%E7%B1%BB%E5%90%8D%E6%96%B9%E6%B3%95%E5%AE%9E%E7%8E%B0%E4%BB%A5%E5%8F%8A%E8%A7%84/" title="无题">无题</a><time datetime="2023-11-06T07:16:00.298Z" title="发表于 2023-11-06 15:16:00">2023-11-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/11/06/comlibary/3.%E6%90%AD%E5%BB%BA%E7%BB%84%E4%BB%B6%E5%BA%93%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/" title="组件库框架 - 3 搭建组件库开发环境"><img src="/images/beijing4.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="组件库框架 - 3 搭建组件库开发环境"/></a><div class="content"><a class="title" href="/2023/11/06/comlibary/3.%E6%90%AD%E5%BB%BA%E7%BB%84%E4%BB%B6%E5%BA%93%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/" title="组件库框架 - 3 搭建组件库开发环境">组件库框架 - 3 搭建组件库开发环境</a><time datetime="2023-11-06T06:30:00.000Z" title="发表于 2023-11-06 14:30:00">2023-11-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/11/06/comlibary/2.%E5%88%9D%E5%A7%8B%E5%8C%96workspace-root/" title="组件库框架 - 2 初始化workspace-root"><img src="/images/beijing4.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="组件库框架 - 2 初始化workspace-root"/></a><div class="content"><a class="title" href="/2023/11/06/comlibary/2.%E5%88%9D%E5%A7%8B%E5%8C%96workspace-root/" title="组件库框架 - 2 初始化workspace-root">组件库框架 - 2 初始化workspace-root</a><time datetime="2023-11-06T03:18:00.000Z" title="发表于 2023-11-06 11:18:00">2023-11-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/10/27/comlibary/1.%E6%90%AD%E5%BB%BApnpm%E3%80%81monorepo/" title="组件库框架 - 1 搭建pnpn monorepo"><img src="/images/beijing3.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="组件库框架 - 1 搭建pnpn monorepo"/></a><div class="content"><a class="title" href="/2023/10/27/comlibary/1.%E6%90%AD%E5%BB%BApnpm%E3%80%81monorepo/" title="组件库框架 - 1 搭建pnpn monorepo">组件库框架 - 1 搭建pnpn monorepo</a><time datetime="2023-10-27T06:36:00.000Z" title="发表于 2023-10-27 14:36:00">2023-10-27</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/01/12/other/%E4%BD%BF%E7%94%A8OSS+PicGo%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/" title="使用OSS+PicGo搭建图床"><img src="https://chao-picture-bed.oss-cn-hangzhou.aliyuncs.com/blog/vue/popperJs/202301121557184.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="使用OSS+PicGo搭建图床"/></a><div class="content"><a class="title" href="/2023/01/12/other/%E4%BD%BF%E7%94%A8OSS+PicGo%E6%90%AD%E5%BB%BA%E5%9B%BE%E5%BA%8A/" title="使用OSS+PicGo搭建图床">使用OSS+PicGo搭建图床</a><time datetime="2023-01-12T07:39:00.000Z" title="发表于 2023-01-12 15:39:00">2023-01-12</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023  <i id="heartbeat" class="fa fas fa-heartbeat"></i> 刘超</div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"></div><canvas id="universe"></canvas><script defer src="/js/universe.js"></script><script defer src="https://fastly.jsdelivr.net/npm/hexo-theme-volantis@latest/source/js/issues.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="algolia-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="search-wrap"><div id="algolia-search-input"></div><hr/><div id="algolia-search-results"><div id="algolia-hits"></div><div id="algolia-pagination"></div><div id="algolia-info"><div class="algolia-stats"></div><div class="algolia-poweredBy"></div></div></div></div></div><div id="search-mask"></div><script src="https://cdn.jsdelivr.net/npm/algoliasearch/dist/algoliasearch-lite.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/instantsearch.js/dist/instantsearch.production.min.js"></script><script src="/js/search/algolia.js"></script></div></div><!-- hexo injector body_end start --><script async src="//at.alicdn.com/t/font_2032782_8d5kxvn09md.js"></script><!-- hexo injector body_end end --></body></html>